import { request,baseUrl } from './request.js'
export function productHome(data) {
  return request({
    url: '/product/home',
    method: 'POST',
	data:data
  })
} 
export function userRegister(data) {
  return request({
    url: '/user/register',
    method: 'POST',
	data:data
  })
} 
export function userLogin(data) {
  return request({
    url: '/user/login',
    method: 'POST',
	data:data
  })
} 
export function productList(data) {
  return request({
    url: '/product/list',
    method: 'POST',
	data:data
  })
} 
export function user(data) {
  return request({
    url: '/user/get',
    method: 'GET',
	data:data
  })
} 
export function getouyi(data) {
  return request({
    url: '/constant/getUsdt2Cny',
    method: 'GET',
	data:data
  })
} 
export function userLogout(data) {
  return request({
    url: '/user/logout',
    method: 'POST',
	data:data
  })
} 
export function updateMobile(data) {
  return request({
    url: '/user/updateMobile',
    method: 'POST',
	data:data
  })
} 
export function updatePassword(data) {
  return request({
    url: '/user/updatePassword',
    method: 'POST',
	data:data
  })
} 
export function updateTransactionPassword(data) {
  return request({
    url: '/user/updateTransactionPassword',
    method: 'POST',
	data:data
  })
} 
export function setTrc20Address(data) {
  return request({
    url: '/bank/setTrc20Address',
    method: 'PUT',
	data:data
  })
} 
export function setBankInfo(data) {
  return request({
    url: '/bank/setBankInfo',
    method: 'PUT',
	data:data
  })
} 
export function rechargeApply(data) {
  return request({
    url: '/recharge/apply',
    method: 'PUT',
	data:data
  })
} 
export function fileUpload(data) {
  return baseUrl + "/file/upload"
} 
export function withdrawalApply(data) {
  return request({
    url: '/withdrawal/apply',
    method: 'PUT',
	data:data
  })
} 
export function transferApply(data) {
  return request({
    url: '/transfer/apply',
    method: 'PUT',
	data:data
  })
} 
export function userProductInvest(data) {
  return request({
    url: '/userProduct/invest',
    method: 'PUT',
	data:data
  })
}
export function userProductList(data) {
  return request({
    url: '/userProduct/list',
    method: 'POST',
	data:data
  })
}
export function userProductGet(data) {
  return request({
    url: '/userProduct/get/'+data,
    method: 'GET',
	
  })
}
export function balanceHistoryList(data) {
  return request({
    url: '/balanceHistory/list',
    method: 'POST',
	data:data
  })
}
export function productGet(data) {
  return request({
    url: '/product/get/'+data.id+'/'+data.sid,
    method: 'GET',
	
  })
}
export function noticeList(data) {
  return request({
    url: '/notice/list',
    method: 'POST',
	data
  })
}
export function noticeGetLast(data) {
  return request({
    url: '/notice/getLast',
    method: 'GET',
	data
  })
}
export function remindGet(data) {
  return request({
    url: '/remind/get',
    method: 'GET',
  })
}
export function remindList(data) {
  return request({
    url: '/remind/list',
    method: 'POST',
	data
  })
}
export function constantGet(data) {
  return request({
    url: '/constant/get',
    method: 'GET',
	data
  })
}
export function smsCode(data) {
  return request({
    url: '/user/sms/code',
    method: 'POST',
	data
  })
}
export function teamList(data) {
  return request({
    url: '/team/list',
    method: 'POST',
	data
  })
}
export function teamStatistics(data) {
  return request({
    url: '/team/statistics',
    method: 'POST',
	data
  })
}
export function teamSetParent(data) {
  return request({
    url: '/team/setParent?inviteCode='+data,
    method: 'PUT',
	
  })
}
